<?php

class Application_Model_Lokasi extends Zend_Db_Table_Abstract
{
    protected $_name = 'tabel_lokasi';
    
    public function lokasiBaru($data)
    {
        $id = $this->insert($data);
        return $id;
    }
    
    public function lokasiUpdate($data, $id)
    {
        $this->update($data, 'id_location = '.(int)$id);
    }

}

